cmake_minimum_required (VERSION 3.12)

project (htx VERSION 1.0)

include (FindPkgConfig)

pkg_check_modules (SSL REQUIRED openssl)

add_library (htx SHARED
	src/http.c
	src/allocation.c
	src/status_code.c
)

target_include_directories (htx PUBLIC
	"inc"
)

target_link_libraries (htx
	${SSL_LIBRARIES}
)
